import axios from 'axios'
const util = {};
//头条获取所有
util.getDynamicAll=params=>axios.post('/api/AppDynamic/getDynamic',params).then((res)=>res.data)
//头条点赞
util.getDynamicLikes=params=>axios.post('/api/AppToutiao/updateDiscussLikes',params).then((res)=>res.data);
//头条中的详细信息
util.findAllReply=params=>axios.post('/apireply/findAllReply',params).then((res)=>res.data);
//头条中的举报
util.getReportTypeAll=params=>axios.post('/api/Report/getReportTypeAll',params).then((res)=>res.data)
//关注所有
util.getFollowUserDynamic=params=>axios.post('/api/AppFocus/getFollowUserDynamic',params).then((res)=>res);

//热榜所有
util.getRebang=params=>axios.post('/api/AppRebang/getReabang/',params).then((res)=>res.data);
 //话题
 util.getTopicContentAll=()=>axios.post('/api/Topic/getTopicContentAll').then((res)=>res.data);
 //话题内容
 util.getTopicByTopicId=params=>axios.post('/api/Topic/getTopicByTopicId',params).then((res)=>res.data);
 //回复
 util.addReply=params=>axios.post('/api/reply/addReply',params).then((res)=>res.data);

export default util;